from threading import Thread
class Thread1(Thread):
    def hello():
        for k in range(10,1000,10):
            print('子线程',k)
    def start(self):
        subthread=Thread(target=Thread1.hello)
        Thread.start(self)
        subthread.start()

if __name__ == '__main__':
    t=Thread1()
    t.start()
    for i in range(5,500,15):
        print('主线程',i)
